import {cipherInTemp, cipherUpdateTemp} from "@/api/strategy/cipher"
import {inboundInTemp, outboundInTemp,updateInBoundTemp,updateOutBoundTemp} from "@/api/strategy/firewall"
import {blacklistInTemp, blackUpdateTemp, whitelistInTemp, whiteUpdateTemp} from "@/api/strategy/whiteList"
import {portInTemp, portUpdateTemp} from "@/api/strategy/portManagement"
import {docCtlInTemp, docCtlUpdateTemp, outDocCtlInTemp} from "@/api/strategy/docControl"

export const formItems = {
    cipher: {
        label: '口令控制',
        field: 'cipherids',
        key: 'cipherids',
        name: 'ciphernames',
        single: true,
        placeholder: '设置口令',
        source: cipherInTemp,
        update: cipherUpdateTemp,
        value: {}
    },
    docOut: {
        label: '外部介质管控',
        field: 'docids',
        key: 'docoutids',
        name: 'docoutnames',
        single: true,
        placeholder: '设置策略',
        source: outDocCtlInTemp,
        update: docCtlUpdateTemp,
        value: {}
    },
    docControl: {
        label: '文件管控',
        field: 'docids',
        key: 'docids',
        name: 'docnames',
        source: docCtlInTemp,
        update: docCtlUpdateTemp,
        value: []
    },
    whiteList: {
        label: '白名单',
        field: 'wids',
        key: 'whiteids',
        name: 'whitenames',
        source: whitelistInTemp,
        update: whiteUpdateTemp,
        value: []
    },
    blackList: {
        label: '黑名单',
        field: 'wids',
        key: 'blackids',
        name: 'blacknames',
        source: blacklistInTemp,
        update: blackUpdateTemp,
        value: []
    },
    portManagement: {
        label: '端口管理',
        field: 'portids',
        key: 'portids',
        name: 'portnames',
        source: portInTemp,
        update: portUpdateTemp,
        value: []
    },
    firewall: {
        label: '入站规则',
        field: 'ruids',
        key: 'ruids',
        name: 'runames',
        source: inboundInTemp,
        update: updateInBoundTemp,
        value: []
    },
    firewallout: {
        label: '出站规则',
        field: 'ruids',
        key: 'chuids',
        name: 'chunames',
        source: outboundInTemp,
        update: updateOutBoundTemp,
        value: []
    },
    // modelSetting: {
    //     label: '模式设置',
    //     field: 'modelids',
    //     key: 'modelids',
    //     name: 'modelnames',
    //     value: []
    // }
}
